#include "resumeClueCardMessage.h"

ResumeClueCardMessage::ResumeClueCardMessage(MtpProtocol* packet) : MtpMessage(packet)
{
}

ResumeClueCardMessage::ResumeClueCardMessage(const int64_t& clueCardId, const int& channel)
	: MtpMessage(new MtpProtocol(L"resumeClueCard")),param(clueCardId,channel)
{

}

void ResumeClueCardMessage::decodeBody()
{
	MtpMessage::decodeBody();
	param.jsonDeserialize(jsonContent);
}

void ResumeClueCardMessage::encodeBody()
{
	jsonContent = param.jsonStr();
	MtpMessage::encodeBody();
}

const ClueCardParam& ResumeClueCardMessage::getParam()
{
	return param;
}
